package org.bbelovic.devel.exercises.collatz.gui;

import javax.swing.JFrame;

public class ApplicationFrame {

    private static final long serialVersionUID = 996639757689102688L;
    private static final String WINDOW_TITLE = "Collatz problem";
    private static final int WIDTH = 600;
    private static final int HEIGT = 600;
    
    private final JFrame frame = new JFrame();
    
    public void createAndShowGUI() {
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        frame.setBounds(0, 0, WIDTH, HEIGT);
        frame.setTitle(WINDOW_TITLE);
        DrawPanel panel = new DrawPanel();
        
        
        frame.add(panel);
        frame.setResizable(false);
        frame.setVisible(true);
    }

}
